﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ArticleList.ascx.cs" Inherits="Marbles.CMS.Administrator.Content.ArticleList" %>
<table border="0" cellpadding="1" cellspacing="0">
<tr><td>
<b>Content</b>
<hr />
<div style="background:white;border:solid 1px silver;padding:4px;height:530px;overflow:scroll;width:250px;">
<asp:TreeView ID="treeContent" runat="server"  ShowExpandCollapse="true" ShowLines="true"  OnSelectedNodeChanged="treeContent_SelectedNodeChanged" ImageSet="News" >
<NodeStyle ForeColor="Black" />
</asp:TreeView>
</div>
</td><td>
<asp:UpdatePanel ID="pnlMain" runat="server" >
<ContentTemplate>
<b>My Task List</b>
<hr />
<div style="background:white;border:solid 1px silver;padding:4px;height:510px;overflow:scroll;width:740px;">
<asp:DataList ID="lstTasks" runat="server" DataKeyField="taskid" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px" Width="98%" OnItemDataBound="lstTasks_itemDataBound">
<ItemTemplate>
<table border="0" cellpadding="1" cellspacing="0">
<tr><td>Subject:</td><td><asp:Label ID="lblSubject" runat="server"  Font-Bold="true" Text='<%# Eval("Subject") %>' /></td></tr>
<tr><td>Due Date:</td><td><asp:Label id="lblDueDate" runat="server" Text='<%# Eval("DueDate","{0:dd/MM/yyyy}") %>' />&nbsp;&nbsp;Status: <asp:Label ID="lblStatus" runat="server" Text='<%#Eval("TaskStatus") %>' /></td></tr>
<tr><td>Start Date:</td><td><asp:Label id="lblStartDate" runat="server" Text='<%# Eval("StartDate","{0:dd/MM/yyyy}") %>' />&nbsp;&nbsp;Priority: <asp:Label ID="lblPriority" runat="server" Text='<%#Eval("TaskPriority") %>' /></td></tr>
</table>
<div style="width:100%; background-color:#eeeeee;">
<div style="width:100%;height:30px;overflow:auto; background-color:#eeeeee;">
<asp:label id="lblNotes" runat="server" text='<%#Eval("Notes") %>' />
</div>
<asp:Button ID="btnEdit" runat="server" Text="Edit" Height="15px" Font-Size="X-Small"  ToolTip="Edit Task" />
<asp:Button ID="btnCancel" runat="server" Text="Cancel" Height="15px" Font-Size="X-Small"  ToolTip="Cancel Task" />
<asp:Button ID="btnComplete" runat="server" Text="Complete" Height="15px" Font-Size="X-Small"  ToolTip="Complete Task" />
</div>
<hr />
</ItemTemplate>
</asp:DataList>
</div>
<asp:Button ID="btnAdd" runat="server" Text="Add Task" ToolTip="Add Task" OnClientClick="window.location.href='Default.aspx?action=Task&taskid=0';" />
</ContentTemplate>
</asp:UpdatePanel>

</td></tr></table>